/**
 * @file 用户信息mock数据
 * @author liushuang(liushuang04@baijia.com)
 * @date 2019-11-14
 */

const { mock, Random } = require("mockjs");

const A = {
    status: 200,
    data: {
        id: 9309,
        name: "ruanairuo",
        displayName: "阮艾若",
        mobile: null,
        department: null,
        manager: null,
        company: null,
        type: null,
        managerId: null,
        title: null,
        avatar: null,
        mail: null,
        status: 0,
        allowedApps: null,
        hasRoles: [
            {
                id: 561,
                name: "系统管理员",
                createtime: 1545904407000,
                type: 0,
                nickName: "fe",
                appId: 37,
                tag: "habo_admin",
                parentAccountId: 0,
                parentAccountRoleId: 0,
                updated: 0,
                status: 0,
                openRoleUid: 8455,
                parentOpenRoleUid: 0,
                hasPermissions: [
                    {
                        id: 383,
                        name: "系统权限管理",
                        tag: "compass_system_admin",
                        comment: "系统权限管理",
                        type: null
                    },
                    {
                        id: 384,
                        name: "教学管理",
                        tag: "compass_education_admin",
                        comment: "教学管理",
                        type: null
                    },
                    {
                        id: 385,
                        name: "学生管理",
                        tag: "compass_student_admin",
                        comment: "学生管理",
                        type: null
                    },
                    {
                        id: 386,
                        name: "学时管理",
                        tag: "compass_period_admin",
                        comment: "学时管理",
                        type: null
                    },
                    {
                        id: 419,
                        name: "事件分析",
                        tag: "compass_event_admin",
                        comment: "事件分析",
                        type: null
                    },
                    {
                        id: 438,
                        name: "好课",
                        tag: "compass_biz_type_1",
                        comment: "好课",
                        type: null
                    },
                    {
                        id: 439,
                        name: "高途",
                        tag: "compass_biz_type_7",
                        comment: "高途",
                        type: null
                    },
                    {
                        id: 454,
                        name: "数据概览",
                        tag: "compass_data_preview_admin",
                        comment: "数据概览",
                        type: null
                    },
                    {
                        id: 474,
                        name: "漏斗分析",
                        tag: "compass_funnel_admin",
                        comment: "漏斗分析",
                        type: null
                    },
                    {
                        id: 475,
                        name: "路径分析",
                        tag: "compass_admin_path",
                        comment: "路径分析",
                        type: null
                    },
                    {
                        id: 512,
                        name: "用户行为序列",
                        tag: "compass_sequence_admin",
                        comment: "用户行为序列",
                        type: null
                    },
                    {
                        id: 567,
                        name: "埋点管理-权限",
                        tag: "compass_point_admin",
                        comment: "埋点管理-权限",
                        type: null
                    },
                    {
                        id: 568,
                        name: "事件管理",
                        tag: "compass_metadata_event_admin",
                        comment: "事件管理",
                        type: null
                    },
                    {
                        id: 569,
                        name: "属性管理",
                        tag: "compass_metadata_property_admin",
                        comment: "属性管理",
                        type: null
                    },
                    {
                        id: 570,
                        name: "埋点测试",
                        tag: "compass_metadata_point_test_admin",
                        comment: "埋点测试",
                        type: null
                    },
                    {
                        id: 587,
                        name: "金囿",
                        tag: "compass_biz_type_8",
                        comment: "金囿",
                        type: null
                    },
                    {
                        id: 598,
                        name: "报表门户权限",
                        tag: "portal_login",
                        comment: "报表门户权限测试",
                        type: null
                    },
                    {
                        id: 604,
                        name: "万象权限",
                        tag: "wanxiang_login",
                        comment: "万象权限",
                        type: null
                    },
                    {
                        id: 610,
                        name: "基础业务",
                        tag: "compass_biz_type_15",
                        comment: "基础业务",
                        type: null
                    },
                    {
                        id: 616,
                        name: "罗盘权限",
                        tag: "compass_super_admin",
                        comment: "罗盘超管权限",
                        type: null
                    },
                    {
                        id: 620,
                        name: "事件权限",
                        tag: "compass_event_permission",
                        comment: "事件权限",
                        type: null
                    },
                    {
                        id: 621,
                        name: "属性权限",
                        tag: "compass_property_permission",
                        comment: "属性权限",
                        type: null
                    },
                    {
                        id: 622,
                        name: "罗盘权限管理",
                        tag: "compass_permission",
                        comment: "罗盘权限管理",
                        type: null
                    },
                    {
                        id: 629,
                        name: "运营研发",
                        tag: "compass_biz_type_17",
                        comment: "运营研发",
                        type: null
                    },
                    {
                        id: 643,
                        name: "任意事件",
                        tag: "compass_anything_admin",
                        comment: "任意事件",
                        type: null
                    },
                    {
                        id: 878,
                        name: "万象数据权限配置",
                        tag: "wanxiang_dataAuth",
                        comment: "万象数据权限配置",
                        type: null
                    },
                    {
                        id: 879,
                        name: "万象用户组管理",
                        tag: "wanxiang_userGroupManage",
                        comment: "万象用户组管理",
                        type: null
                    },
                    {
                        id: 880,
                        name: "万象人员信息",
                        tag: "wanxiang_wxUser",
                        comment: "万象人员信息",
                        type: null
                    },
                    {
                        id: 881,
                        name: "万象项目信息",
                        tag: "wanxiang_wxProject",
                        comment: "万象项目信息",
                        type: null
                    },
                    {
                        id: 882,
                        name: "万象创建菜单",
                        tag: "wanxiang_itemCreation",
                        comment: "万象创建菜单",
                        type: null
                    }
                ]
            },
            {
                id: 564,
                name: "辅导老师",
                createtime: 1576564331000,
                type: 0,
                nickName: "fe",
                appId: 37,
                tag: "habo_assistant",
                parentAccountId: 0,
                parentAccountRoleId: 0,
                updated: 0,
                status: 0,
                openRoleUid: 10186,
                parentOpenRoleUid: 0,
                hasPermissions: [
                    {
                        id: 384,
                        name: "教学管理",
                        tag: "compass_education_admin",
                        comment: "教学管理",
                        type: null
                    },
                    {
                        id: 385,
                        name: "学生管理",
                        tag: "compass_student_admin",
                        comment: "学生管理",
                        type: null
                    },
                    {
                        id: 386,
                        name: "学时管理",
                        tag: "compass_period_admin",
                        comment: "学时管理",
                        type: null
                    },
                    {
                        id: 438,
                        name: "好课",
                        tag: "compass_biz_type_1",
                        comment: "好课",
                        type: null
                    }
                ]
            },
            {
                id: 1004,
                name: "高途续班大组长",
                createtime: 1606358290000,
                type: 0,
                nickName: "",
                appId: 37,
                tag: "ud_gtxbdzz",
                parentAccountId: 0,
                parentAccountRoleId: 0,
                updated: 0,
                status: 0,
                openRoleUid: 106057,
                parentOpenRoleUid: 0,
                hasPermissions: [
                    {
                        id: 598,
                        name: "报表门户权限",
                        tag: "portal_login",
                        comment: "报表门户权限测试",
                        type: null
                    }
                ]
            },
            {
                id: 1005,
                name: "高途续班小组长",
                createtime: 1606358299000,
                type: 0,
                nickName: "",
                appId: 37,
                tag: "ud_gtxbxzz",
                parentAccountId: 0,
                parentAccountRoleId: 0,
                updated: 0,
                status: 0,
                openRoleUid: 106059,
                parentOpenRoleUid: 0,
                hasPermissions: [
                    {
                        id: 598,
                        name: "报表门户权限",
                        tag: "portal_login",
                        comment: "报表门户权限测试",
                        type: null
                    }
                ]
            },
            {
                id: 1006,
                name: "高途续班个人",
                createtime: 1606358309000,
                type: 0,
                nickName: "",
                appId: 37,
                tag: "ud_gtxbgr",
                parentAccountId: 0,
                parentAccountRoleId: 0,
                updated: 0,
                status: 0,
                openRoleUid: 106060,
                parentOpenRoleUid: 0,
                hasPermissions: [
                    {
                        id: 598,
                        name: "报表门户权限",
                        tag: "portal_login",
                        comment: "报表门户权限测试",
                        type: null
                    }
                ]
            }
        ],
        mailGroups: null,
        currentRole: {
            id: 561,
            name: "系统管理员",
            createtime: 1545904407000,
            type: 0,
            nickName: "fe",
            appId: 37,
            tag: "habo_admin",
            parentAccountId: 0,
            parentAccountRoleId: 0,
            updated: 0,
            status: 0,
            openRoleUid: 8455,
            parentOpenRoleUid: 0,
            hasPermissions: [
                {
                    id: 383,
                    name: "系统权限管理",
                    tag: "compass_system_admin",
                    comment: "系统权限管理",
                    type: null
                },
                {
                    id: 384,
                    name: "教学管理",
                    tag: "compass_education_admin",
                    comment: "教学管理",
                    type: null
                },
                {
                    id: 385,
                    name: "学生管理",
                    tag: "compass_student_admin",
                    comment: "学生管理",
                    type: null
                },
                {
                    id: 386,
                    name: "学时管理",
                    tag: "compass_period_admin",
                    comment: "学时管理",
                    type: null
                },
                {
                    id: 419,
                    name: "事件分析",
                    tag: "compass_event_admin",
                    comment: "事件分析",
                    type: null
                },
                {
                    id: 438,
                    name: "好课",
                    tag: "compass_biz_type_1",
                    comment: "好课",
                    type: null
                },
                {
                    id: 439,
                    name: "高途",
                    tag: "compass_biz_type_7",
                    comment: "高途",
                    type: null
                },
                {
                    id: 454,
                    name: "数据概览",
                    tag: "compass_data_preview_admin",
                    comment: "数据概览",
                    type: null
                },
                {
                    id: 474,
                    name: "漏斗分析",
                    tag: "compass_funnel_admin",
                    comment: "漏斗分析",
                    type: null
                },
                {
                    id: 475,
                    name: "路径分析",
                    tag: "compass_admin_path",
                    comment: "路径分析",
                    type: null
                },
                {
                    id: 512,
                    name: "用户行为序列",
                    tag: "compass_sequence_admin",
                    comment: "用户行为序列",
                    type: null
                },
                {
                    id: 567,
                    name: "埋点管理-权限",
                    tag: "compass_point_admin",
                    comment: "埋点管理-权限",
                    type: null
                },
                {
                    id: 568,
                    name: "事件管理",
                    tag: "compass_metadata_event_admin",
                    comment: "事件管理",
                    type: null
                },
                {
                    id: 569,
                    name: "属性管理",
                    tag: "compass_metadata_property_admin",
                    comment: "属性管理",
                    type: null
                },
                {
                    id: 570,
                    name: "埋点测试",
                    tag: "compass_metadata_point_test_admin",
                    comment: "埋点测试",
                    type: null
                },
                {
                    id: 587,
                    name: "金囿",
                    tag: "compass_biz_type_8",
                    comment: "金囿",
                    type: null
                },
                {
                    id: 598,
                    name: "报表门户权限",
                    tag: "portal_login",
                    comment: "报表门户权限测试",
                    type: null
                },
                {
                    id: 604,
                    name: "万象权限",
                    tag: "wanxiang_login",
                    comment: "万象权限",
                    type: null
                },
                {
                    id: 610,
                    name: "基础业务",
                    tag: "compass_biz_type_15",
                    comment: "基础业务",
                    type: null
                },
                {
                    id: 616,
                    name: "罗盘权限",
                    tag: "compass_super_admin",
                    comment: "罗盘超管权限",
                    type: null
                },
                {
                    id: 620,
                    name: "事件权限",
                    tag: "compass_event_permission",
                    comment: "事件权限",
                    type: null
                },
                {
                    id: 621,
                    name: "属性权限",
                    tag: "compass_property_permission",
                    comment: "属性权限",
                    type: null
                },
                {
                    id: 622,
                    name: "罗盘权限管理",
                    tag: "compass_permission",
                    comment: "罗盘权限管理",
                    type: null
                },
                {
                    id: 629,
                    name: "运营研发",
                    tag: "compass_biz_type_17",
                    comment: "运营研发",
                    type: null
                },
                {
                    id: 643,
                    name: "任意事件",
                    tag: "compass_anything_admin",
                    comment: "任意事件",
                    type: null
                },
                {
                    id: 878,
                    name: "万象数据权限配置",
                    tag: "wanxiang_dataAuth",
                    comment: "万象数据权限配置",
                    type: null
                },
                {
                    id: 879,
                    name: "万象用户组管理",
                    tag: "wanxiang_userGroupManage",
                    comment: "万象用户组管理",
                    type: null
                },
                {
                    id: 880,
                    name: "万象人员信息",
                    tag: "wanxiang_wxUser",
                    comment: "万象人员信息",
                    type: null
                },
                {
                    id: 881,
                    name: "万象项目信息",
                    tag: "wanxiang_wxProject",
                    comment: "万象项目信息",
                    type: null
                },
                {
                    id: 882,
                    name: "万象创建菜单",
                    tag: "wanxiang_itemCreation",
                    comment: "万象创建菜单",
                    type: null
                }
            ]
        }
    },
    error: null,
    pageDto: null
};

module.exports = {
    "POST /api/main": mock({}),
    "POST /api/cas/getAuth": mock(A)
};
